package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * 分馆表
 * @author Administrator
 *
 */
public class Pavilions implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 4258000221105176000L;

	private String pavilionId;

    private String pavilionName;

    private String description;

    private String keywords;

    private Integer minAge;

    private Integer maxAge;

    private Integer disabled;
    
    private Integer resType;
    
    private String bannerUrl;
    
    private String coverUrl;
    
    private String columnOrder;

    public String getPavilionId() {
        return pavilionId;
    }

    public void setPavilionId(String pavilionId) {
        this.pavilionId = pavilionId == null ? null : pavilionId.trim();
    }

    public String getPavilionName()
    {
        return pavilionName;
    }

    public void setPavilionName(String pavilionName)
    {
        this.pavilionName = pavilionName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords == null ? null : keywords.trim();
    }

    public Integer getMinAge() {
        return minAge;
    }

    public void setMinAge(Integer minAge) {
        this.minAge = minAge;
    }

    public Integer getMaxAge() {
        return maxAge;
    }

    public void setMaxAge(Integer maxAge) {
        this.maxAge = maxAge;
    }

    public Integer getDisabled() {
        return disabled;
    }

    public void setDisabled(Integer disabled) {
        this.disabled = disabled;
    }    

    public Integer getResType()
    {
        return resType;
    }

    public void setResType(Integer resType)
    {
        this.resType = resType;
    }

    public String getBannerUrl()
    {
        return bannerUrl;
    }

    public void setBannerUrl(String bannerUrl)
    {
        this.bannerUrl = bannerUrl;
    }

    public String getCoverUrl() {
		return coverUrl;
	}

	public void setCoverUrl(String coverUrl) {
		this.coverUrl = coverUrl;
	}	

	public String getColumnOrder()
    {
        return columnOrder;
    }

    public void setColumnOrder(String columnOrder)
    {
        this.columnOrder = columnOrder;
    }

    public Pavilions()
    {
        super();
    }    

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((bannerUrl == null) ? 0 : bannerUrl.hashCode());
        result = prime * result + ((columnOrder == null) ? 0 : columnOrder.hashCode());
        result = prime * result + ((coverUrl == null) ? 0 : coverUrl.hashCode());
        result = prime * result + ((description == null) ? 0 : description.hashCode());
        result = prime * result + ((disabled == null) ? 0 : disabled.hashCode());
        result = prime * result + ((keywords == null) ? 0 : keywords.hashCode());
        result = prime * result + ((maxAge == null) ? 0 : maxAge.hashCode());
        result = prime * result + ((minAge == null) ? 0 : minAge.hashCode());
        result = prime * result + ((pavilionId == null) ? 0 : pavilionId.hashCode());
        result = prime * result + ((pavilionName == null) ? 0 : pavilionName.hashCode());
        result = prime * result + ((resType == null) ? 0 : resType.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        Pavilions other = (Pavilions)obj;
        if (bannerUrl == null)
        {
            if (other.bannerUrl != null) return false;
        }
        else if (!bannerUrl.equals(other.bannerUrl)) return false;
        if (columnOrder == null)
        {
            if (other.columnOrder != null) return false;
        }
        else if (!columnOrder.equals(other.columnOrder)) return false;
        if (coverUrl == null)
        {
            if (other.coverUrl != null) return false;
        }
        else if (!coverUrl.equals(other.coverUrl)) return false;
        if (description == null)
        {
            if (other.description != null) return false;
        }
        else if (!description.equals(other.description)) return false;
        if (disabled == null)
        {
            if (other.disabled != null) return false;
        }
        else if (!disabled.equals(other.disabled)) return false;
        if (keywords == null)
        {
            if (other.keywords != null) return false;
        }
        else if (!keywords.equals(other.keywords)) return false;
        if (maxAge == null)
        {
            if (other.maxAge != null) return false;
        }
        else if (!maxAge.equals(other.maxAge)) return false;
        if (minAge == null)
        {
            if (other.minAge != null) return false;
        }
        else if (!minAge.equals(other.minAge)) return false;
        if (pavilionId == null)
        {
            if (other.pavilionId != null) return false;
        }
        else if (!pavilionId.equals(other.pavilionId)) return false;
        if (pavilionName == null)
        {
            if (other.pavilionName != null) return false;
        }
        else if (!pavilionName.equals(other.pavilionName)) return false;
        if (resType == null)
        {
            if (other.resType != null) return false;
        }
        else if (!resType.equals(other.resType)) return false;
        return true;
    }

    public Pavilions(String pavilionId, String pavilionName, String description, String keywords,
                     Integer minAge, Integer maxAge, Integer disabled, Integer resType,
                     String bannerUrl, String coverUrl, String columnOrder)
    {
        super();
        this.pavilionId = pavilionId;
        this.pavilionName = pavilionName;
        this.description = description;
        this.keywords = keywords;
        this.minAge = minAge;
        this.maxAge = maxAge;
        this.disabled = disabled;
        this.resType = resType;
        this.bannerUrl = bannerUrl;
        this.coverUrl = coverUrl;
        this.columnOrder = columnOrder;
    }

    @Override
    public String toString()
    {
        return "Pavilions [pavilionId=" + pavilionId + ", pavilionName=" + pavilionName
               + ", description=" + description + ", keywords=" + keywords + ", minAge=" + minAge
               + ", maxAge=" + maxAge + ", disabled=" + disabled + ", resType=" + resType
               + ", bannerUrl=" + bannerUrl + ", coverUrl=" + coverUrl + ", columnOrder="
               + columnOrder + "]";
    }
}